package com.dazhi.boot.web.servlet.context;

import com.dazhi.boot.web.context.ConfigurableWebServerApplicationContext;
import com.dazhi.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.web.context.support.GenericWebApplicationContext;

public class ServletWebServerApplicationContext extends GenericWebApplicationContext
        implements ConfigurableWebServerApplicationContext {
    @Override
    protected void onRefresh() {
        super.onRefresh();
        createWebServer();
    }

    private void createWebServer() {
        TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
//        factory.getWebServer();
    }
}
